﻿namespace MvcForum.Net.Bussiness
{
    public class Role
    {
        public int RoleId { get; set; }

        public string RoleName { get; set; }

        public bool IsAutoStart { get; set; }

        public bool IsAdmin { get; set; }

        public bool IsSuperModerator { get; set; }

        public string CssClass { get; set; }

        public string AccessMask { get; set; }

        public bool AllowLogin { get; set; }

        private AccessMask _permission;

        public AccessMask Permissions
        {
            get { return _permission ?? (_permission = new AccessMask(AccessMask)); }
        }
    }
}